
//
//  AboutWeViewController.m
//  电竞头条项目
//
//  Created by dllo on 16/8/27.
//  Copyright © 2016年 m. All rights reserved.
//

#import "AboutWeViewController.h"
#import "UIView+Frame.h"
@interface AboutWeViewController ()
@property (nonatomic, strong)UILabel *labelstyle;
@end

@implementation AboutWeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
      self.view.backgroundColor = [UIColor whiteColor];
      [self letfButton];
      [self redView];
}
- (void)letfButton {
      self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:@"btn_back"] style:UIBarButtonItemStylePlain target:self action:@selector(handleLeft)];
      
}
- (void)redView {
      UIView *viewred = [[UIView alloc]initWithFrame:CGRectMake(0,0, self.view.width, 64)];
      [self.view addSubview:viewred];
      viewred.backgroundColor = [UIColor redColor];
      UILabel *loginTitleViewLabel = [[UILabel alloc]initWithFrame:CGRectMake(self.view.centerX - 30, 25, 120, 30)];
      [self.view addSubview:loginTitleViewLabel];
      loginTitleViewLabel.text = @"关于我们";
      loginTitleViewLabel.textColor = [UIColor whiteColor];
      loginTitleViewLabel.font = [UIFont systemFontOfSize:18];
      UIImageView *imageLogo = [[UIImageView alloc]initWithFrame:CGRectMake(self.view.centerX - 75, 200, 150, 45)];
      [self.view addSubview:imageLogo];
      imageLogo.image = [UIImage imageNamed:@"me_about_logo"];
      _labelstyle = [[UILabel alloc]initWithFrame:CGRectMake(self.view.centerX - 50, 255, 100, 30)];
      [self.view addSubview:_labelstyle];
      _labelstyle.text = @"电竞头条v1.2.5";
      _labelstyle.font = [UIFont systemFontOfSize:13];
      UILabel *labelcompany = [[UILabel alloc]initWithFrame:CGRectMake(self.view.centerX - 45, self.view.height - 50, 100, 30)];
      [self.view addSubview:labelcompany];
      labelcompany.text = @"北京竞牛有限公司";
      labelcompany.textColor = [UIColor grayColor];
      labelcompany.font = [UIFont systemFontOfSize:11];
}
- (void)handleLeft {
      [self.navigationController popViewControllerAnimated:YES];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
